import { AxiosPromise } from 'axios'
// @ts-ignore
import request from '/@/utils/request'

const prefix = '/api/dms/customer/location/'
// 地址簿
export const customerLocationList: (data: object) => AxiosPromise = (data) =>
  request(`${prefix}list`, { data })
// 提交地址簿
export const orderLocationSave: (data: object) => AxiosPromise = (data) =>
  request(`${prefix}save`, { data })